dundas.controls.DiscreteColorRule Class

A binding rule that maps a discrete data value into a color value.
 

Inheritance Hierarchy

 
Class
   dundas.controls.BindingRule
      dundas.controls.ColorBindingRule
         dundas.controls.DiscreteColorRule
 

Constructors

 
  Name Description
init Initializes a new instance of the DiscreteColorRule class. A discrete rule is a 1:1 mapping of a category to an output value. Inherited from dundas.controls.BindingRule.
 
 

Properties

 
  Name Description
caption Gets or sets an optional display value or array of display values for dataValue.
classes Gets the current set of data binding classes for this rule. Inherited from dundas.controls.BindingRule.
colorScaleFormat Gets or sets the format of the color scale labels. Inherited from dundas.controls.ColorBindingRule.
colorScaleSymbol Gets or sets the text displaced before or after the values in the color scale labels. Inherited from dundas.controls.ColorBindingRule.
colorScaleSymbolPlacement Gets or sets whether the label symbol is placed before or after the value. Inherited from dundas.controls.ColorBindingRule.
dataValue Gets or sets the data value this rule applies to.
isDisplayedInColorScale Gets or sets a value indicating whether this color rule is displayed in a color scale in the legend when its classes are ranges of numeric values. Inherited from dundas.controls.ColorBindingRule.
isDisplayedInLegend Gets or sets a value indicating whether this rule is displayed in the legend. Inherited from dundas.controls.BindingRule.
isHiddenFromLegendIfUnbound Gets or sets a value indicating whether this color should not be identified in the legend if there are no corresponding data points.
legendCategory Gets or sets the category within which to group legend items displaying this binding rule's classes. Inherited from dundas.controls.BindingRule.
value Gets or sets the color value for this rule's data value.
 
 

Methods

 
  Name Description
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
toString Returns a string representation of this object.